package com.cfwx.thread;


public class Task extends Thread {
	private volatile boolean flag= true;
	public void stopTask() {
		flag = false;
	}
	@Override
	public void run() {
		while(flag){
			System.out.println(System.currentTimeMillis());
		}
	}
}